{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
	<h1>	
		移动端
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$breadcrumb1}
		</small>
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			代理审核
		</small>
	</h1>
</div>	
	
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table id="table" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>						
						<th>姓名</th> 
						<th>电话</th> 
						<th>邮箱</th> 
						<th>身份证</th> 
						<th>申请时间</th>	
						<th>审核时间</th>					
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
						{volist name="list" id="v" empty="$empty"}
						<tr>		
							<td>{$v.name}</td>
							<td>{$v.tel}</td>
							<td>{$v.email}</td>
							<td>{$v.id_cart}</td>
							<td>						
								{if condition="!empty($v['create_time'])"}{$v.create_time|date="Y-m-d",###}{else/}无{/if}
							</td>
							<td>
								{if condition="!empty($v['deal_time'])"}{$v.deal_time|date="Y-m-d",###}{else/}无{/if}
							</td>
						
							<td>
								{switch name="v.status"}
								    {case value="0"}<span class="red bold">未审核</span>{/case}								    
								    {case value="2"}<span class="green bold">已拒绝</span>{/case}									           
								{/switch}
							</td>
							<td>								
								{if condition="$v['status'] EQ 0"}	
									<a href="{:url('AgentBackend/pass',array('id'=>$v['aa_id']))}">审核</a>
								{else/}		
									<a href="{:url('AgentBackend/look',array('id'=>$v['aa_id'],'status'=>$v['status']))}">查看</a>	
								{/if}					
							</td>
						</tr>
						{/volist}	
						
						<tr>
							<td colspan="20" class="page">{$list->render()}</td>
						</tr>
						<tr>
							<td colspan="20" class="page">总计 {$list->total()|default="0"} 个申请</td>
						</tr>
				</tbody>
				
			</table>
		</div>
	</div>
</div>
{/block}
